package edu.zut.hb.ambition.report.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ReportMapper;
import com.ruoyi.system.domain.Report;
import com.ruoyi.system.service.IReportService;

@Service
public class ReportServiceImpl implements IReportService 
{
    @Autowired
    private ReportMapper reportMapper;

    @Override
    public Report selectReportByReportid(Long reportid)
    {
        return reportMapper.selectReportByReportid(reportid);
    }

    @Override
    public List<Report> selectReportList(Report report)
    {
        return reportMapper.selectReportList(report);
    }

    @Override
    public int insertReport(Report report)
    {
        return reportMapper.insertReport(report);
    }

    @Override
    public int updateReport(Report report)
    {
        return reportMapper.updateReport(report);
    }


    @Override
    public int deleteReportByReportids(Long[] reportids)
    {
        return reportMapper.deleteReportByReportids(reportids);
    }


    @Override
    public int deleteReportByReportid(Long reportid)
    {
        return reportMapper.deleteReportByReportid(reportid);
    }
}
